package cn.zane.designPattern.createPatterns.singletonPatterns.design;

/**
 * @Author: zane
 * @Date: 2025/01/05
 * @Description: 懒汉模式(线程不安全)
 */
public class Singleton_01 {

    private Singleton_01() {
    }

    private static Singleton_01 instance;

    public static Singleton_01 getInstance() {
        if (null == instance) {
            instance = new Singleton_01();
        }
        return instance;
    }
}
